package com.itheima.d4_enum;

public class demo {

    public static void main(String[] args) {
        Season spring = Season.SPRING;
//        spring.showInfo();
        Season[] seasons = Season.values();
        for (int i = 0; i < seasons.length; i++) {
            seasons[i].showInfo();
        }

        int j = spring.ordinal();
        System.out.println(j);
        System.out.println(spring);


    }
}
